﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HiUpdateTools.Client.Win;

namespace HiUpdateTools.Client.Test
{
    class Program
    {
        static void Main(string[] args)
        {  
            Args = args;

            if (!Program.Args.Contains("/noupdate"))
            {
              
                using (UpdateChecker checker = new UpdateChecker("ClientConfig.xml", typeof(Program).Assembly.GetName().Version))
                {
                    if (checker.Check())
                    {
                        checker.RunUpdate();
                       return;
                    }
                }
            }

        }
        public static string[] Args { get; set; }
    }
}
